package com.wandian.texas.command.texas;

import com.wandian.centerserver.CenterMgr;
import com.wandian.centerserver.CenterSessionMgr;
import com.wandian.command.Cmd;
import com.wandian.command.UserCommand;
import com.wandian.texas.BaseCommandObject;
import com.wandian.util.Log;

/**
 * @author long
 * @date 2012-12-8 下午4:11:48
 * @qq 108232706
 * @description CenterServerCmd请求中心服务器操作
 */
@Cmd(code = CenterSessionMgr.CMD_CENTER_SERVER, desc = "")
public class CenterServerCmd extends UserCommand {
	public CenterServerCmd() {
		this.setCommandName("CenterServerCmd");
	}

	@Override
	public void execute(BaseCommandObject cmdObject) {
		super.execute(cmdObject);
		switch (cmdObject.readByte()) {
		case 10:// responseAllowCornucopia
			Log.debug("CenterServer OnCommand CMD_ALLOWCORNUCOPIA");
			CenterMgr.ALLOWCORNUCOPIA(cmdObject);
			break;
		case 11:// requestUsingdCornucopia
			Log.debug("CenterServer OnCommand CMD_USINGDCORNUCOPIA");
			CenterMgr.USINGDCORNUCOPIA(cmdObject);
			break;
		case 12:// requestSendCornucopia
			Log.debug("CenterServer OnCommand CMD_SENDCORNUCOPIA");
			CenterMgr.SENDCORNUCOPIA(cmdObject);
			break;			
		case 13:// requestSendSystemTotalWin
//			Log.debug("CenterServer OnCommand CMD_SENDSYSTEMTOTALWIN");
			CenterMgr.SENDSYSTEMTOTALWIN(cmdObject);
			break;		
		default:
			break;
		}
	}
}
